package com.sc.nft.mapper;

import com.sc.nft.entity.MallMemberEquityTarget;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.dto.CheckHasPreemptionGetByTargetDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商城会员权益对应福利 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-04-02
 */
public interface MallMemberEquityTargetMapper extends BaseMapper<MallMemberEquityTarget> {

    boolean reduceCanUseNum(@Param("mallMemberEquityTargetId") long mallMemberEquityTargetId, @Param("count") Integer count);

    boolean addCanUseNum(@Param("mallMemberEquityTargetId") Long mallMemberEquityTargetId, @Param("count") Integer count);

    List<CheckHasPreemptionGetByTargetDTO> checkHasPreemptionGetByTargetId(@Param("activitySpecId") Long activitySpecId);
}
